#!/bin/sh
if [ $# -eq 0 ]; then
	echo
	echo "    tolaptop filename/path"
	echo
	exit 0
fi

IP_ADD=192.168.0.5
R_PATH=/mnt/disk/tools/

# VAR=$(ls -la | grep "$1" | awk 'NR=1 ;{exit}' | cut -b1)
if [ -d $1 ]
then
	# echo "目录"
	scp -r $1 mushroom@$IP_ADD:$R_PATH
elif [ -a $1 ]
then
	# echo "普通文件"
	scp $1 mushroom@$IP_ADD:$R_PATH
fi

# vim:filetype=sh:
